package day03;

public class OperDemo {
    public static void main (String[] args){
//        int a=1;
//        int b=2;
//        a++;
//        ++b;
//        System.out.println(a);   //2
//        System.out.println(b);  //3
//        System.out.println(a++);    //2
//        System.out.println(++b);    //4
//        System.out.println(a);      //3
//        System.out.println(b);      //4
//        int c = a++;
//        int d = ++b;
//        System.out.println(a);  //4
//        System.out.println(b);  //5
//        System.out.println(c);  //3
//        System.out.println(d);  //5
//        int a = 10;
//        System.out.println(!(a>=5 && a<=15));
//        short a = 5;
//        a += 10;              //相当于a = (short)(a+10)
//        System.out.println(a);
//        int b = 10;
//        b %= 3;
//        System.out.println(b);
//        int age = 18;
//        String name = "胡秀明";
//        double height = 11.65;
//        double weight = 60.18;
//        System.out.println("大家好，我叫"+name+",今年"+age+"岁了，我的身高是"+height+"米，我的体重是"+weight+"公斤。很高兴认识大家！");
//        System.out.println("a"+50+60+70);  //a506070
//        System.out.println(50+"a"+60+70);  //50a6070
//        System.out.println(50+60+"a"+70);  //110a70
//        System.out.println(50+60+70+"a");  //180a
//        System.out.println(50+60+70+80+"a"+90+100+110+120);  //260a90100110120
//        int a = (int)(Math.random()*100);
//        int b = (int)(Math.random()*100); //-----------------------------------------------------强转优先级高，0-1的double转int会直接变成0。
//        int max = a>b ? a:b;
//        System.out.println(max);
//        int c = (int)Math.random();
//        System.out.println(c);


    }
}
